package com.hksj.common.core.util;

import cn.hutool.core.lang.Snowflake;

public class IdUtil {

    public static Long getSnowflakeId(){
        Snowflake snowflake = cn.hutool.core.util.IdUtil.getSnowflake(0, 0);
        return snowflake.nextId();
    }

    public static String getSnowflakeIdStr(){
        Snowflake snowflake = cn.hutool.core.util.IdUtil.getSnowflake(0, 0);
        return snowflake.nextIdStr();
    }
}
